package com.echoesnet.echoesshortvideo.ViewModels;

import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;

import com.echoesnet.echoesshortvideo.Persistence.VideoPathBean;
import com.echoesnet.echoesshortvideo.Repositories.VideoSelectRepository;

import java.util.List;

/**
 * Copyright (C) 2017 在线回声（天津）科技发展有限公司
 * 在线回声完全享有此软件的著作权，违者必究
 *
 * @author an
 * @version 1.0
 * @modifier
 * @createDate 2018/4/23 0023
 * @description
 */
public class VideoSelectModel extends ViewModel
{
    private LiveData<List<VideoPathBean>> data;
    private VideoSelectRepository videoSelectRepository;

    public VideoSelectModel()
    {
        videoSelectRepository = new VideoSelectRepository();
    }

    public LiveData<List<VideoPathBean>> getVideoList()
    {
       data = videoSelectRepository.getVideoList();
        return data;
    }
}
